﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace JqueryNet.FormControl.FormWebControl
{
    public class JTextBox : JWebControl
    {
        TextBox textbox;
        public JTextBox(TextBox textbox)
            : base(textbox)
        {
            this.textbox = textbox;            
        }

        public override void Val()
        {            
            Value = textbox.Text;
        }

        public override void Val(string value)
        {
            textbox.Text = value;
        }
    }
}
